package com.newshub.ai.model.dto;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.Map;

/**
 * 图表配置 DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChartConfig {
    
    /**
     * 图表类型
     */
    private String type;
    
    /**
     * 图表标题
     */
    private String title;
    
    /**
     * X 轴配置
     */
    private AxisConfig xAxis;
    
    /**
     * Y 轴配置
     */
    private AxisConfig yAxis;
    
    /**
     * 数据系列
     */
    private List<SeriesConfig> series;
    
    /**
     * 图表选项
     */
    private Map<String, Object> options;
    
    /**
     * 轴配置
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class AxisConfig {
        private String name;
        private String type;
        private List<String> categories;
        private Map<String, Object> style;
    }
    
    /**
     * 系列配置
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class SeriesConfig {
        private String name;
        private String type;
        private List<Object> data;
        private Map<String, Object> style;
    }
}





